package com.itheima.filter1;

import javax.servlet.*;
import java.io.IOException;


public class RightFilter implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("范遥抵抗 六大门派");

        System.out.println("如果抵抗失败 就会放行");

        System.out.println("范遥顶不住了，失败就放行");
        chain.doFilter(req, resp);
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
